// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import "./assets/reset.css"
import "./assets/border.css"
import './assets/iconfont/iconfont.css'
import './assets/iconfont/iconfont.js'
import '../static/config/csspublic.css'
import './rem.js'
import 'lib-flexible'
// import 'lib-flexible'
import store from './store'
import global_ from './../static/config/global'

import axios from 'axios'
import layer from 'vue-layer'
import '../../wechatEasy/src/pages/goshopping/common/stylus/index.styl'

import 'vue-layer/lib/vue-layer.css';
// import muicss from 'muicss'
/*import Vuex from 'vuex'
Vue.use(Vuex)*/
import VueAwesomeSwiper from 'vue-awesome-swiper'

// require styles
import 'swiper/dist/css/swiper.css'

Vue.use(VueAwesomeSwiper, /* { default global options } */)
Vue.prototype.$layer = layer(Vue);

Vue.prototype.$http = axios
Vue.prototype.GLOBAL = global_;
axios.defaults.url = global_.url
Vue.config.productionTip = false
/*Vue.prototype.$emit = function (event) {
  var shouldPropagate = this.$emit.apply(this, arguments);
  if (!shouldPropagate) return;
  var parent = this.$parent;
  var args = toArray(arguments);
  // use object event to indicate non-source emit
  // on parents
  args[0] = { name: event, source: this };
  while (parent) {
    shouldPropagate = parent.$emit.apply(parent, args);
    parent = shouldPropagate ? parent.$parent : null;
  }
  return this;
};*/
// Vue.use(muicss);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
